package com.apache.portal.weixin.entity.send;

import org.jdom.Document;
import org.jdom.Element;

/**
  * description: 回复视频消息模型
  * @author Hou DaYu 创建时间：下午02:00:49
 */
public class WxSendVideoMsg extends WxSendMsg {

	private String mediaId;//通过上传多媒体文件，得到的id 
	private String description;//视频消息的描述
	private String title;//视频消息的标题 

	public WxSendVideoMsg(WxSendMsg msg, String mediaId, String title, String description) {
		super(msg);
		setMsgType("image");
		this.mediaId = mediaId;
		this.title = title;
		this.description = description;
	}

	public String getMediaId() {
		return mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public Document toDocument() {
		Document doc = super.toDocument();
		Element root = doc.getRootElement();
		Element voide = createElement(root, "Video", "");
		createElement(voide, "MediaId", getMediaId());
		createElement(voide, "Title", title);
		createElement(voide, "Description", description);
		return doc;
	}
}
